package com.xinqi.modules.prepare.common.dto.input;

import com.xinqi.modules.prepare.prepare.enums.PrepareTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 备课区导入-请求对象
 *
 * @author linkai
 * @date 2023/4/13
 */
@Data
@Schema(description = "备课区导入-请求对象")
public class PrepareImportCreateDTO implements Serializable {
    /**
     * 课程模块相关ID
     */
    @Schema(description = "课程模块相关ID", example = "1001")
    @NotNull(message = "课程模块相关ID不能为空")
    private Long sourceId;
    /**
     * 备课区类型
     */
    @Schema(description = "备课区类型，1:互动课件；2:资料；3:作业；4:测评；5:讨论；6:互动视频；8:公告；99:题库；10:成员", example = "1")
    @NotNull(message = "备课区类型不能为空")
    private PrepareTypeEnum type;
    /**
     * 目标备课区Id
     */
    @Schema(description = "目标备课区Id", example = "1001", hidden = true)
    private Long targetPrepareId;
    /**
     * 目标父ID
     */
    @Schema(description = "目标父ID，根节点默认为0", example = "0")
    @NotNull(message = "目标父ID不能为空")
    private Long targetPid;

}
